<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>示例</title>
</head>
<body>

    <div id="app1">
        app1: {{ nowDate() }}
    </div>

    <div id="app2">
        app2: {{ nowDate }}
    </div>

    <script src="https://unpkg.com/vue/dist/vue.min.js"></script>
    <script>

        var app1 = new Vue({
            el: "#app1",
            data: {
                text: '123,456',
                text2: "xx"
            },
            methods: {
                nowDate: function () {
                    return new Date();
                }
            }
        });

        var app2 = new Vue({
            el: "#app2",
            computed: {
                nowDate: function () {
                    return new Date();
                }
            }
        });

    </script>

</body>
</html>